#ifndef TEACHER_H
#define TEACHER_H

#include <QObject>

class Teacher : public QObject
{
    Q_OBJECT
public:
    explicit Teacher(QObject *parent = nullptr);

// 信号函数是一个无返回值的函数，定义在signals节点下
// 信号函数无需实现
// 信号函数允许重载
signals:
    void say();
    void say(QString str);

public slots:
    void mySlot(QString str);
};

#endif // TEACHER_H
